#include "root.h"


Root::Root(QObject *parent) :
    Collection(parent)
{
    m_changed = false;
}


Root::Root(const Root &other) :
    Collection(other)
{
    m_changed = other.changed();
}


bool Root::changed() const
{
    return m_changed;
}


void Root::onChanged(bool changed)
{
    m_changed = changed;
}


void Root::onReparent()
{
    Collection::onReparent();

    connect(this, SIGNAL(sigChanged()), this, SLOT(onChanged()));
}
